<?php
    $block_title =     $this->vote_info->thread_name.($this->vote_info->phase_name!=""?" - ".$this->vote_info->phase_name:"");
?>
<!--Left Bar:-->
        <!--right Bar:-->
        <div id="menu_left">
                 <div class="nen_menu_left">
                       <div class="menu_left">
                            
                            <div class="title_l">
                            <div class="title_l_t">
                        <a href="#"><img src="<?php print $this->spath; ?>/images/slideanh.jpg" width="82" height="20" /></a>
                        </div>
                        </div>
                            
                            <div>
                                 <div class="sile_anh">
                                 <script type="text/javascript">
                        new fadeshow(fadeimages, 240, 320, 0, 3000, 0, "R")    ;                
                                  </script>
                                  
                              </div>
                                  <p class="tex_slide">
                             Hãy bình chọn cho các thí sinh mình yêu thích nhất!
                                Để đánh giá và bình chọn cho các thí sinh trên <a href="http://www.tamtay.vn" target="_blank">www.tamtay.vn</a> bạn cần phải <a href="<?php echo IDS_REGISTER_URL;?>" target="_blank">đăng ký</a> tài khoản.          
                                  </p>
                            </div>
                            <div class="clear"></div>
                       </div>
                       <!--div mo-->
                 </div>
                 
                 <!--binh chon-->
                 <?php //displayBanner($event->eid, "left-1");?>
                 
                 <!--Top 10 thi sinh:-->
                <?php echo $this->top_block?>
                <!--Het top 10-->
                <?php //displayBanner($event->eid, "left-2");?>
                 
                 
                 
<!-- y kien ban doc-->
                <div id="wall" class="nen_menu_left">
                    <div class="menu_left2">
                        <div class="tex_menu_left">
                            <a href="#">
                                <img src="<?php print $this->spath; ?>/images/ykiencuaban.jpg" alt="Ý kiến của bạn" width="125" height="23" border="0" /></a></div>
                        <div class="y_kien" id="wall_block">
                            <?php echo $this->comment_block?>
                        </div>
                    </div>
                </div>     
                 <!--quancao-->
                <?php //displayBanner($event->eid, "left-3");?>
                 <div class="clear"></div>
                 <!--div-->
           </div>

            <div id="menu_right">
                <div class="nen_nd">
                    <div class="menu_right">
                        <div class="title">
                            <img src="<?php print $this->spath; ?>/images/danhsach.jpg" width="89" height="20" alt="Danh sách" />
                        </div>                    
                    </div>

                    <div class="photo_poll">
                        <ul class="member_list">
                            <!--Tieu de:-->
                            <li class="header">
                                <div class="float-left image">&nbsp;Hình ảnh</div>
                                <div class="float-left name">Thông tin</div>
                                <div class="float-left view">Xem</div>
                                <div class="float-left sms">Dự đoán</div>
                                <div class="clear"></div>
                            </li>
                            <?php
                            if(is_array($voted_list) && count($voted_list)>0){
                            $i = 1;
                            foreach($voted_list as $node){
                    
                                $img="http://img.tamtay.vn" . $node->thumbnail;
                                $star=ceil($node->rate_value/20);
                                if ($total_vote_sms==0){
                                    $sms_percent=0;
                                }
                                else{
                                    $sms_percent=round($node->vote_sms_count/$total_vote_sms, 4)*100;
                                }
                            ?>
                            <!--Danh sach thi sinh:-->
                            <li class="item_member">
                                <div class="float-left image">
                                    <!--<span class="order">1</span>-->
                                    <a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" title="<?php echo $node->album_name;?>"><img src="<?php print $this->spath; ?>/images/spacer.gif" style="background-image: url('<?php echo $static_server.$node->thumbnail;?>'); background-position: center; background-repeat: no-repeat;" /></a>
                                </div>
                                <div class="float-left name">
                                    <p><a href="http://photo.tamtay.vn/photo/view/<?php echo $node->aid;?>" target="_blank"><?php echo $node->album_name;?></a></p>
                                    <p><img src="http://img.tamtay.vn/images/stars<?php echo $star; ?>.gif" /></p>
                                    <p class="soantin">Soạn : <span class="maso"><?php echo $vote_info->sms_command_code;?>&nbsp;<?php echo $node->sbd; ?> &lt;Số người dự đoán giống bạn&gt;</span> gửi <span class="gui"><?php echo $vote_info->sms_destination1;?></span>.
                                    </p>
                                </div>                        
                                <div class="float-left view">
                                    <?php echo $node->view_count; ?>
                                </div>
                                <div class="float-left sms">
                                    <?php echo $sms_percent;?>%
                                </div>
                                <div class="clear"></div>
                            </li>
                          <?php
                                }// End for loop
                            }// End if
                        ?>
                        </ul>
                    </div>                            
                    <div class="clear"></div>
                </div>
            </div>
            <div class="clear"></div>
    
        
        